import socket
sk = socket.socket()
sk.bind(("127.0.0.1",8000))
sk.listen()
while True:
    conn,addr = sk.accept()
    while True:
        msg = conn.recv(1024).decode()
        print(msg)
        inp = input("请输入想说的话")
        conn.send(inp.encode())


    conn.close()
sk.close()


